import Vue from "vue";
import Router from "vue-router";
import Login from "@/components/login.vue";
import Container from "@/components/Container.vue";
import Byxz from "@/components/chengyuan/Byxz.vue";
import Cyb from "@/components/chengyuan/Cyb.vue";
import Zjb from "@/components/chengyuan/Zjb.vue";
import Xmb from "@/components/xiangmu/xmb.vue";
import Xmb6 from "@/components/xiangmu/xmb6.vue";
import Lbt from "@/components/Lbt.vue";
// 下面都增删改
import addByxz from "@/components/chengyuan/add/addByxz.vue";
import editByxz from "@/components/chengyuan/edit/editByxz.vue";
import addCyb from "@/components/chengyuan/add/addCyb.vue";
import editCyb from "@/components/chengyuan/edit/editCyb.vue";
import addZjb from "@/components/chengyuan/add/addZjb.vue";
import editZjb from "@/components/chengyuan/edit/editZjb.vue";
import addXmb from "@/components/xiangmu/add/addXmb.vue";
import editXmb from "@/components/xiangmu/edit/editXmb.vue";
import addLbt from "@/components/addLbt.vue";
import editLbt from "@/components/editLbt.vue";
Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      name: "login",
      component: Login
    },
    {
      path: "/login",
      name: "login",
      component: Login
    },
    {
      path: "/main",
      name: "Container",
      component: Container,
      children: [
        {
          path: "/main/byxz",
          name: "Byxz",
          component: Byxz
        },
        {
          path: "/main/cyb",
          name: "Cyb",
          component: Cyb
        },
        {
          path: "/main/zjb",
          name: "Zjb",
          component: Zjb
        },
        {
          path: "/main/xmb",
          name: "Xmb",
          component: Xmb
        },
        {
          path: "/main/xmb6",
          name: "Xmb6",
          component: Xmb6
        },
        {
          path: "/main/lbt",
          name: "Lbt",
          component: Lbt
        },
        // 下面增删改查
        {
          path: "/main/addByxz",
          name: "addByxz",
          component: addByxz
        },
        {
          path: "/main/editByxz",
          name: "editByxz",
          component: editByxz
        },
        {
          path: "/main/addCyb",
          name: "addCyb",
          component: addCyb
        },
        {
          path: "/main/editCyb",
          name: "editCyb",
          component: editCyb
        },
        {
          path: "/main/addZjb",
          name: "addZjb",
          component: addZjb
        },
        {
          path: "/main/editZjb",
          name: "editZjb",
          component: editZjb
        },
        {
          path: "/main/addXmb",
          name: "addXmb",
          component: addXmb
        },
        {
          path: "/main/editXmb",
          name: "editXmb",
          component: editXmb
        },
        {
          path: "/main/addLbt",
          name: "addLbt",
          component: addLbt
        },
        {
          path: "/main/editLbt",
          name: "editLbt",
          component: editLbt
        }
      ]
    }
  ]
});
